
import { LocationQueryValue } from 'vue-router';
import axios from "../request";

export function getDetail(id: string | LocationQueryValue[] | null) {
    return axios.get(`/goods/detail/${id}`);
}

export function getCategory() {
    return axios.get("/categories");
}
interface Params {
    pageNumber: number;
    keyword: string;
    orderBy: string;
}
export function search(params: Params) {
    return axios.get("/search", { params });
}
